package com.ruoyi.opencv.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.opencv.core.Point;

public class ScanMask {
    private String fileId;
    private Point leftTop;
    private Point rightTop;
    private Point rightBottom;
    private Point leftBottom;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public Point getLeftTop() {
        return leftTop;
    }

    public void setLeftTop(Point leftTop) {
        this.leftTop = leftTop;
    }

    public Point getRightTop() {
        return rightTop;
    }

    public void setRightTop(Point rightTop) {
        this.rightTop = rightTop;
    }

    public Point getRightBottom() {
        return rightBottom;
    }

    public void setRightBottom(Point rightBottom) {
        this.rightBottom = rightBottom;
    }

    public Point getLeftBottom() {
        return leftBottom;
    }

    public void setLeftBottom(Point leftBottom) {
        this.leftBottom = leftBottom;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", fileId)
                .append("leftTop", leftTop != null ? leftTop : "Not specified")
                .append("rightTop", rightTop != null ? rightTop : "Not specified")
                .append("rightBottom", rightBottom != null ? rightBottom : "Not specified")
                .append("leftBottom", leftBottom != null ? leftBottom : "Not specified")
                .toString();
    }
}
